package com;

import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.DefaultLogger;

public class MyLogger extends DefaultLogger{
	public String buildStatus=null;
	@Override
    public void buildFinished(BuildEvent be) {
        System.out.println("[BUILD FINISHED]\n");
        Throwable th = be.getException();
        String status = (th != null) ? "failed" : "succeeded";
        System.out.println(status);
    }
   
    @Override
    public void buildStarted(BuildEvent be) {
        System.out.println("[BUILD STARTED]\n");
    }

    @Override
    public void messageLogged(BuildEvent be) {
        System.out.println(be.getMessage() + "\n");
    }
     
}
